package com.cxyd.modules.wms.service;

import com.cxyd.common.page.PageData;
import com.cxyd.common.service.CrudService;
import com.cxyd.common.utils.Result;
import com.cxyd.modules.api.dto.request.PurchaseDetailRequest;
import com.cxyd.modules.wms.dto.PurchaseDetailDTO;
import com.cxyd.modules.wms.entity.PurchaseDetailEntity;

import java.util.List;
import java.util.Map;

/**
 * 入库明细
 *
 * @author g_Cycle gengruyi01@163.com
 * @since 1.0.0 2023-04-27
 */
public interface PurchaseDetailService extends CrudService<PurchaseDetailEntity, PurchaseDetailDTO> {
    PageData<PurchaseDetailDTO> rfPage(Map<String, Object> params);

    void batchSave(List<PurchaseDetailEntity> entities);

    List<PurchaseDetailEntity> detailList(String purchaseNo);

    List<PurchaseDetailEntity> findByPurchaseId(Long purchaseId);

    Result purchaseRegister(PurchaseDetailRequest request);

    void store(PurchaseDetailRequest request);
}